package com.carkeeper.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Table(name="tb_blog")
public class Blog implements Serializable {
    @Id
    private String id;
    private String title;
    private String cover;//标题图片
    @Column(name = "blog_category_id")
    private Integer blogCategoryId;//分类id
    private Integer sort;
    private String link;
    private String content;//内容
    private Integer status; //是否发布 0 未发布  1 已发布
    private String creator;//发布人
    private Date createTime;//创建时间
    private Date updateTime;//修改时间
}
